using Sandia.MVCFramework.Data;
using System;
using System.Collections.Generic;
using System.Text;

namespace Sandia.MVCFramework.ExportTools
{
    /// <summary>
    /// A wrapper object for a data payload that is to be exported
    /// </summary>
    public class ExportContainer: Container
    {
        string fileMask = "Text Files (*.txt)|*.txt";
        string filename = "foobar.txt";

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="payload">The payload to place in the container</param>
        /// <param name="filename">Filename to export to</param>
        /// <param name="fileMask">Filemask for export file type</param>
        public ExportContainer(IData payload, string filename, string fileMask)
            : base(payload)
        {
            this.filename = filename;
            this.fileMask = fileMask;
        }

        /// <summary>
        /// Filename to export to
        /// </summary>
        public string Filename
        {
            get
            {
                return this.filename;
            }
        }

        /// <summary>
        /// Filemask for export file type
        /// </summary>
        public string FileMask
        {
            get
            {
                return this.fileMask;
            }
        }
    }
}
